fix frontend for some platform