Fixed a bug with default scope