bug in compile