Fixed a index out of bounds exception on user access.