Fixing bug where the width was over screen