Fix checkUserDefined

Fix checkUserDefined