fixing shitty JS type error