fixed syntax error in check_dimensions

Change-Id: I0455d4182f51f25db8831797b34609ee98ac6ae2