Fixed procedure execution (at the wrong place)