Encoder interrupt problem

You migh whant to read Arduino cookbook (by Michael Margolis) page 620. It worked great for me :D!