Fixed any bugs with screen edge positioning