Fixes bug with the offset of the code view