Fix bug in public view