Error in import frames in GUI