Fixed the nil taken error