fix missed space in query qreation