fixed hascode problem