Errors with code, objects out of environment