Still working to fix the null pointer error