maybe this will fix the null pointer exception?