fix direction issue