add W/A for the problem with function definition removing