Fixing bug 1263

--HG--
extra : source : 4239fcc8d400b417d01f07d98cdfbc2459d21579
Fixing calls to call_procedure in entity handler