try to fix gcc4.7 compiler crash