Fixed issue with enabled debug mode