Corrected wrong comparison value