Fix project box hover on firefox

Fix #457 and refix #448.