Simple corner position filter for better performance