Removed redundat code

Caused blank screens