fixed return error on empy field