fixed prepare statement