Fix a bug :| because I forgot convert conditions into pattern