Fixed currentObjects function.