Fixed wrong function being called on install