weird angular bug workaround