fix constant out of screen errors