There is no where in your code that would cause an assertion error. Recommend you post the full error and use the line numbers it contains to backtrack through the code to find out where it is...