fixed the empty error