fix boundarie collision