Fixed errors generated by GETAPTS^SDMAPI modification.