Solving issue #404

I have explained the bug inside the issue #404. If you want I can copy/paste it here.