fixed error on is_empty