fixed crashes when anything is in the corner