Fixed error when viewing own attendance