[fix] possible bug in rendering engine