Handling incorrectly set custom control file