fix for snapjs