Fixed wall collision bug