Fixed ugly compile error