fixed direction bug