fix issue where prompt was compiling to early