Fixed NPE. Not sure why that occured.