Fixed a compile time bug