Bug Fix

fixed a quick bug that was making the data valid true during every call