Fixed the NullPointer Error

Thanks, Mikey