fixed crash when edittext is empty