bug fix for compiled error