Fixed some frame and direction stuff