Fixed drawing bug in non-chrome