Fix for profile script