directionality issue fixed
(#555)