compile time bug fixes