cant really see why it'd be null, but attempting to fix http://pastebin.com/ZWqhR0uS