Fix little bug for smaller_than and greater_than