small fix for corner generation