Fixed error not showing error on console