fixed for work in ie7, fixed bug with inline mode