Fix error with rendering