Ensuring that filter ids are always integers