Fixing refrence to nothing