Fixed issue #3441

Fixed the 2 occurences that erroneously use $package as an object.