fixed in debug mode