fix bound bug