direction bug fixed