fixed few bugs on offer creation