Fixing null pointer exception.