Fixed bugs with multiple direction render