Fixed bug regarding frameID's