Not working correctly with package