FIX: indexOf must check for int