fix apply mode and guessing