fixed weird bug with profile creation trying to execute twice