try to fix nil error