fix Firefox bug and resizable canvas Block