apply bugfix of http://www.getnocms.com/forum/index.php?topic=5274.0, thanks to flashmech