Fixed functions problem on server