fixing empty error