fixing stuff for FF 27 and below.