Fixed a Null Pointer Exception on first load.