fixes functional expression before execution