Fixed bug with no critical points