fixed compile error (with a bit dirty hack)