Fix element draw order