This issue might be related to this bug. Soumith opened an issue here to track it.
Just to double check if these issues are related: Do you get the correct result on GPU?