fixed bugs with occurred cutoffs and with key show/hides