forcing onbeat to integer in case it's not