fixed problem with compilation of delegates for IM