Fixed error on wall collision