Error message was always showing