Fixed bug with auto