do type assertion for category
set minimal range for achievements

otherwise mongodb hangs for some reason