Fixed null pointer exception in onCreate