Fixed a minor bug in clear screen method.