Fixed smartmax issues